package com.yikes.srb.feign.userInfo;

import com.yikes.srb.common.constant.SrbServiceConstant;
import com.yikes.srb.common.result.Result;
import com.yikes.srb.feign.fallback.UserInfoClientFallback;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * <p>
 *
 * </p>
 *
 * @Author: guanrong.yin
 * @Date: 2025/1/7 23:57
 */
@Component
@FeignClient(value = SrbServiceConstant.YIKES_SERVICE, fallback = UserInfoClientFallback.class)
public interface UserInfoClient {

    String PATH = "/user_info";

    @Operation(description = "校验手机号是否注册")
    @GetMapping(PATH + "/checkMobile/{mobile}")
    Result checkMobile(@PathVariable String mobile);


}
